com.sabro.jbusiness.database.mssql.comp.parser
Class Parser

java.lang.Object
  extended by com.sabro.jbusiness.database.mssql.comp.parser.Parser
All Implemented Interfaces:
ParserConstants, ParserTreeConstants

public class Parser
extends java.lang.Object
implements ParserTreeConstants, ParserConstants


Field Summary
 Token jj_nt
          Next token.
 Token token
          Current token.
 ParserTokenManager token_source
          Generated Token Manager.
 
Fields inherited from interface com.sabro.jbusiness.database.mssql.comp.parser.ParserTreeConstants
JJTALTERCREATETABLE, JJTBEGINTRAN, JJTBINARYCONSTANT, JJTBINARYOPERATOR, JJTBLOCK, JJTBLOCKWHILE, JJTBUILTINAGREGATEFUNCTION, JJTBUILTINSCALARDATETIMEFUNCTION, JJTBUILTINSCALARFUNCTION, JJTBUILTINSCALARMATHEMATICALFUNCTION, JJTBUILTINSCALARSTRINGFUNCTION, JJTBUILTINSCALARSYSTEMFUNCTION, JJTCLOSECURSOR, JJTCOLUMN, JJTCOLUMNALIAS, JJTCOLUMNDEFINITION, JJTCOMMITTRAN, JJTCONDITIONAL, JJTCONDITIONALFUNCTION, JJTCONSTANT, JJTCURSORDECLARATION, JJTDATATYPE, JJTDATETIMECONSTANT, JJTDEALLOCATECURSOR, JJTDECIMALCONSTANT, JJTDELETE, JJTDROPTABLE, JJTEXECSCRIPT, JJTEXECUTE, JJTEXISTS, JJTEXPRESSION, JJTEXPRESSIONS, JJTFETCHCURSOR, JJTFLOATCONSTANT, JJTFROMCLAUSE, JJTFUNCAOCONDICIONALINTERNA, JJTFUNCAOESCALARINTERNA, JJTGROUPBYCLAUSE, JJTHAVINGCLAUSE, JJTIF, JJTINSERT, JJTINTEGERCONSTANT, JJTINTOCLAUSE, JJTJOINEDTABLE, JJTJOINHINT, JJTJOINTYPE, JJTMENSAGEM, JJTMONEYCONSTANT, JJTNEWTABLE, jjtNodeName, JJTOPENCURSOR, JJTOPERATORARITMETIC, JJTOPERATORBITWISE, JJTOPERATORCOMPARISION, JJTORDERBYCLAUSE, JJTPREDICATE, JJTPREDICATEBLOCK, JJTPREDICATETRUE, JJTPROCEDURENAME, JJTQUERYCOMPLEXA, JJTQUERYSIMPLES, JJTRAISERROR, JJTRETURN, JJTROLLBACKTRAN, JJTSCALARFUNCTION, JJTSCALARSUBQUERY, JJTSEARCHCONDITION, JJTSELECTCLAUSE, JJTSELECTITEM, JJTSELECTLIST, JJTSET, JJTSIMPLEEXPRESSION, JJTSOURCENAME, JJTSTATMENT, JJTSTATMENTS, JJTSTATMENTSINTERNOS, JJTSUBQUERY, JJTTABLEALIAS, JJTTABLEHINT, JJTTABLENAME, JJTTABLESOURCE, JJTUNARYOPERATOR, JJTUPDATE, JJTUSERDEFINEDSCALARFUNCTION, JJTVARIABLEDECLARATION, JJTVIEWHINT, JJTVIEWNAME, JJTWHERECLAUSE, JJTWHILE
 
Fields inherited from interface com.sabro.jbusiness.database.mssql.comp.parser.ParserConstants
ABS, ABSOLUTE, ACOS, ALL, ALTER, AND, ANY, APP_NAME, AS, ASC, ASCII, ASIN, ATAN, ATN2, AVG, BEGIN, BETWEEN, BIGINT, BINARY, BIT, BREAK, BY, CASE, CAST, CEILLING, CFOPID, CFOPSCAMPOID, CHAR, CHARINDEX, CLOSE, COALESCE, COLLATIONPROPERTY, COMMIT, CONCAT, CONTINUE, CONVERT, COS, COT, COUNT, CREATE, CROSS, CURRENT_TIMESTAMP, CURRENT_USER, CURSOR, DATALENGTH, DATEADD, DATEDIFF, DATENAME, DATEPART, DATETIME, DAY, DEALLOCATE, DECIMAL, DECIMAL_NUMBER, DECLARE, DEFAULT, DEGREES, DELETE, DESC, DIFFERENCE, DISTINCT, DROP, DYNAMIC, ELSE, END, EOF, ERROR, ESCAPE, EXEC, EXEC_SCRIPT, EXECUTE, EXISTS, EXP, FAST_FORWARD, FASTFIRSTROW, FETCH, FETCH_STATUS, FIRST, FLOAT, FLOAT_NUMBER, FLOOR, FOR, FORMATMESSAGE, FORWARD_ONLY, FROM, FULL, GETANSINULL, GETDATE, GETFASEID, GETFATOR, GETID, GETSIGLA, GETSTATUS, GETUTCDATE, GETVALOR, GLOBAL, GROUP, HASH, HAVING, HEXA_NUMBER, HOLDLOCK, HOST_ID, HOST_NAME, IDENT_CURRENT, IDENT_INCR, IDENT_SEED, IDENTIFIER, IDENTITY, IDENTITYCOL, IDENTITYFUNCTION, IF, IMAGE, IN, INDEX, INFASE, INNER, INSERT, INT, INTEGER, INTO, IS, ISDATE, ISNULL, ISNUMERIC, JOIN, KEY, KEYSET, LAST, LEFT, LEN, LETTER, LIKE, LINE_COMMENT, LOCAL, LOG, LOG10, LOOP, LOWER, LTRIM, MAX, MAXIMO, MENSAGEM, MERGE, MIN, MINIMO, MODIFID, MONEY, MONTH, MULTI_LINE_COMMENT, NCHAR, NEWID, NEXT, NOEXPAND, NOLOCK, NOMECOMPOSTO, NOMETEMPORARIO, NOT, NTEXT, NULL, NULLIF, NUMERIC, NVARCHAR, OBJECT_ID, OF, ON, OPEN, OPERATOR_AMPERSTAND, OPERATOR_ASSIGNMENT, OPERATOR_BARRA, OPERATOR_CIRCUMFLEXO, OPERATOR_COMMA, OPERATOR_DIVIDE, OPERATOR_DOLAR, OPERATOR_GREATHERTHAN, OPERATOR_GREATHERTHANEQUAL, OPERATOR_LOWERTHAN, OPERATOR_LOWERTHANEQUAL, OPERATOR_MINUS, OPERATOR_MODULE, OPERATOR_MULTIPLY, OPERATOR_NOTEQUAL1, OPERATOR_NOTEQUAL2, OPERATOR_NOTGREATHERTHAN, OPERATOR_NOTLOWERTHAN, OPERATOR_PLUS, OPERATOR_POINT, OPTIMISTIC, OR, ORDER, OUTER, OUTPUT, PAGLOCK, PARENTESES_CLOSE, PARENTESES_OPEN, PARSENAME, PATINDEX, PERCENT, PERMISSIONS, PI, POWER, PRIMARY, PRIOR, QUOTENAME, RADIANS, RAISERROR, RAND, READ_ONLY, READCOMMITTED, READPAST, READUNCOMMITTED, REAL, RELATIVE, REMOTE, REPEATABLEREAD, REPLACE, REPLICATE, RETURN, REVERSE, RIGHT, ROLLBACK, ROUND, ROWCOUNT, ROWCOUNT_BIG, ROWGUIDCOL, ROWLOCK, RTRIM, S_QUOTED_IDENTIFIER, SCOPE_IDENTITY, SCROLL, SCROLL_LOCKS, SELECT, SERIALIZABLE, SERVERPROPERTY, SESSION_USER, SESSIONPROPERTY, SET, SIGN, SIN, SMALLDATETIME, SMALLINT, SMALLMONEY, SOMA, SOME, SOUNDEX, SPACE, SPID, SQL_VARIANT, SQLDEFAULT, SQRT, SQUARE, STATIC, STATS_DATE, STR, STRING_LITERAL, STUFF, SUBSTRING, SUM, SYSTEM_USER, TABLE, TABLOCK, TABLOCKX, TAN, TEXT, THEN, TIMESTAMP, TINYINT, tokenImage, TOP, TRAN, TRANCOUNT, TRANSACTION, TYPE_WARNING, UNICODE, UNION, UNIQUE, UNIQUE_IDENTIFIER, UNIQUEIDENTIFIER, UPDATE, UPDLOCK, UPPER, USER_NAME, VALUES, VARBINARY, VARCHAR, VARIABLE, WHEN, WHERE, WHILE, WITH, XLOCK, YEAR
 
Constructor Summary
Parser(java.io.InputStream stream)
          Constructor with InputStream.
Parser(java.io.InputStream stream, java.lang.String encoding)
          Constructor with InputStream and supplied encoding
Parser(ParserTokenManager tm)
          Constructor with generated Token Manager.
Parser(java.io.Reader stream)
          Constructor.
 
Method Summary
 void AlterCreateTable()
           
 void BeginTran()
           
 void BinaryConstant()
           
 void BinaryOperator()
           
 void Block()
           
 void BlockWhile()
           
 void BuiltInAgregateFunction()
           
 void BuiltInScalarDateTimeFunction()
           
 void BuiltInScalarFunction()
           
 void BuiltInScalarMathematicalFunction()
           
 void BuiltInScalarStringFunction()
           
 void BuiltInScalarSystemFunction()
           
 void CloseCursor()
           
 void Column()
           
 void ColumnAlias()
           
 void ColumnDefinition()
           
 void CommitTran()
           
 void Conditional()
           
 void ConditionalFunction()
           
 void Constant()
           
 void CursorDeclaration()
           
 void DataType()
           
 void DatetimeConstant()
           
 void DeallocateCursor()
           
 void DecimalConstant()
           
 void Delete()
           
 void disable_tracing()
          Disable tracing.
 void DropTable()
           
 void enable_tracing()
          Enable tracing.
 void ExecScript()
           
 void Execute()
           
 void Exists()
           
 void Expression()
           
 void Expressions()
           
 void FetchCursor()
           
 void FloatConstant()
           
 void FromClause()
           
 void FuncaoCondicionalInterna()
           
 void FuncaoEscalarInterna()
           
 ParseException generateParseException()
          Generate ParseException.
 Parser getNewParser(java.io.Reader stream)
           
 Token getNextToken()
          Get the next Token.
 Token getToken(int index)
          Get the specific Token.
 void GroupByClause()
           
 void HavingClause()
           
 void If()
           
 void Insert()
           
 void IntegerConstant()
           
 void IntoClause()
           
 void JoinedTable()
           
 void JoinHint()
           
 void JoinType()
           
 void Mensagem()
           
 void MoneyConstant()
           
 void NewTable()
           
 void OpenCursor()
           
 void OperatorAritmetic()
           
 void OperatorBitwise()
           
 void OperatorComparision()
           
 void OrderByClause()
           
 void Predicate()
           
 void PredicateBlock()
           
 void PredicateTrue()
           
 void ProcedureName()
           
 void QueryComplexa()
           
 void QuerySimples()
           
 void Raiserror()
           
 void ReInit(java.io.InputStream stream)
          Reinitialise.
 void ReInit(java.io.InputStream stream, java.lang.String encoding)
          Reinitialise.
 void ReInit(ParserTokenManager tm)
          Reinitialise.
 void ReInit(java.io.Reader stream)
          Reinitialise.
 void Return()
           
 void RollbackTran()
           
 Node rootNode()
           
 void ScalarFunction()
           
 void ScalarSubquery()
           
 void SearchCondition()
           
 void SelectClause()
           
 void SelectItem()
           
 void SelectList()
           
 void Set()
           
 void setSysConexao(SysConexao sysConexao)
           
 void SimpleExpression()
           
 void SourceName()
           
 void Statment()
           
 void Statments()
           
 void StatmentsInternos()
           
 void Subquery()
           
 void TableAlias()
           
 void TableHint()
           
 void TableName()
           
 void TableSource()
           
 void UnaryOperator()
           
 void Update()
           
 void UserDefinedScalarFunction()
           
 void VariableDeclaration()
           
 void ViewHint()
           
 void ViewName()
           
 void WhereClause()
           
 void While()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

token_source

public ParserTokenManager token_source
Generated Token Manager.


token

public Token token
Current token.


jj_nt

public Token jj_nt
Next token.

Constructor Detail

Parser

public Parser(java.io.InputStream stream)
Constructor with InputStream.


Parser

public Parser(java.io.InputStream stream,
              java.lang.String encoding)
Constructor with InputStream and supplied encoding


Parser

public Parser(java.io.Reader stream)
Constructor.


Parser

public Parser(ParserTokenManager tm)
Constructor with generated Token Manager.

Method Detail

setSysConexao

public void setSysConexao(SysConexao sysConexao)

getNewParser

public Parser getNewParser(java.io.Reader stream)

rootNode

public Node rootNode()

Block

public final void Block()
                 throws ParseException
Throws:
ParseException

Statments

public final void Statments()
                     throws ParseException
Throws:
ParseException

Statment

public final void Statment()
                    throws ParseException
Throws:
ParseException

VariableDeclaration

public final void VariableDeclaration()
                               throws ParseException
Throws:
ParseException

CursorDeclaration

public final void CursorDeclaration()
                             throws ParseException
Throws:
ParseException

OpenCursor

public final void OpenCursor()
                      throws ParseException
Throws:
ParseException

FetchCursor

public final void FetchCursor()
                       throws ParseException
Throws:
ParseException

CloseCursor

public final void CloseCursor()
                       throws ParseException
Throws:
ParseException

DeallocateCursor

public final void DeallocateCursor()
                            throws ParseException
Throws:
ParseException

Set

public final void Set()
               throws ParseException
Throws:
ParseException

If

public final void If()
              throws ParseException
Throws:
ParseException

While

public final void While()
                 throws ParseException
Throws:
ParseException

BlockWhile

public final void BlockWhile()
                      throws ParseException
Throws:
ParseException

Insert

public final void Insert()
                  throws ParseException
Throws:
ParseException

Delete

public final void Delete()
                  throws ParseException
Throws:
ParseException

Update

public final void Update()
                  throws ParseException
Throws:
ParseException

Execute

public final void Execute()
                   throws ParseException
Throws:
ParseException

Raiserror

public final void Raiserror()
                     throws ParseException
Throws:
ParseException

Return

public final void Return()
                  throws ParseException
Throws:
ParseException

StatmentsInternos

public final void StatmentsInternos()
                             throws ParseException
Throws:
ParseException

Mensagem

public final void Mensagem()
                    throws ParseException
Throws:
ParseException

ExecScript

public final void ExecScript()
                      throws ParseException
Throws:
ParseException

BeginTran

public final void BeginTran()
                     throws ParseException
Throws:
ParseException

RollbackTran

public final void RollbackTran()
                        throws ParseException
Throws:
ParseException

CommitTran

public final void CommitTran()
                      throws ParseException
Throws:
ParseException

AlterCreateTable

public final void AlterCreateTable()
                            throws ParseException
Throws:
ParseException

ColumnDefinition

public final void ColumnDefinition()
                            throws ParseException
Throws:
ParseException

DropTable

public final void DropTable()
                     throws ParseException
Throws:
ParseException

DataType

public final void DataType()
                    throws ParseException
Throws:
ParseException

Expressions

public final void Expressions()
                       throws ParseException
Throws:
ParseException

Expression

public final void Expression()
                      throws ParseException
Throws:
ParseException

Conditional

public final void Conditional()
                       throws ParseException
Throws:
ParseException

BinaryOperator

public final void BinaryOperator()
                          throws ParseException
Throws:
ParseException

OperatorAritmetic

public final void OperatorAritmetic()
                             throws ParseException
Throws:
ParseException

OperatorBitwise

public final void OperatorBitwise()
                           throws ParseException
Throws:
ParseException

OperatorComparision

public final void OperatorComparision()
                               throws ParseException
Throws:
ParseException

SimpleExpression

public final void SimpleExpression()
                            throws ParseException
Throws:
ParseException

UnaryOperator

public final void UnaryOperator()
                         throws ParseException
Throws:
ParseException

Constant

public final void Constant()
                    throws ParseException
Throws:
ParseException

BinaryConstant

public final void BinaryConstant()
                          throws ParseException
Throws:
ParseException

DatetimeConstant

public final void DatetimeConstant()
                            throws ParseException
Throws:
ParseException

IntegerConstant

public final void IntegerConstant()
                           throws ParseException
Throws:
ParseException

DecimalConstant

public final void DecimalConstant()
                           throws ParseException
Throws:
ParseException

FloatConstant

public final void FloatConstant()
                         throws ParseException
Throws:
ParseException

MoneyConstant

public final void MoneyConstant()
                         throws ParseException
Throws:
ParseException

ScalarFunction

public final void ScalarFunction()
                          throws ParseException
Throws:
ParseException

ConditionalFunction

public final void ConditionalFunction()
                               throws ParseException
Throws:
ParseException

BuiltInScalarFunction

public final void BuiltInScalarFunction()
                                 throws ParseException
Throws:
ParseException

BuiltInScalarSystemFunction

public final void BuiltInScalarSystemFunction()
                                       throws ParseException
Throws:
ParseException

BuiltInAgregateFunction

public final void BuiltInAgregateFunction()
                                   throws ParseException
Throws:
ParseException

BuiltInScalarMathematicalFunction

public final void BuiltInScalarMathematicalFunction()
                                             throws ParseException
Throws:
ParseException

BuiltInScalarStringFunction

public final void BuiltInScalarStringFunction()
                                       throws ParseException
Throws:
ParseException

BuiltInScalarDateTimeFunction

public final void BuiltInScalarDateTimeFunction()
                                         throws ParseException
Throws:
ParseException

FuncaoEscalarInterna

public final void FuncaoEscalarInterna()
                                throws ParseException
Throws:
ParseException

FuncaoCondicionalInterna

public final void FuncaoCondicionalInterna()
                                    throws ParseException
Throws:
ParseException

UserDefinedScalarFunction

public final void UserDefinedScalarFunction()
                                     throws ParseException
Throws:
ParseException

Column

public final void Column()
                  throws ParseException
Throws:
ParseException

ScalarSubquery

public final void ScalarSubquery()
                          throws ParseException
Throws:
ParseException

Subquery

public final void Subquery()
                    throws ParseException
Throws:
ParseException

QueryComplexa

public final void QueryComplexa()
                         throws ParseException
Throws:
ParseException

QuerySimples

public final void QuerySimples()
                        throws ParseException
Throws:
ParseException

SelectClause

public final void SelectClause()
                        throws ParseException
Throws:
ParseException

SelectList

public final void SelectList()
                      throws ParseException
Throws:
ParseException

SelectItem

public final void SelectItem()
                      throws ParseException
Throws:
ParseException

IntoClause

public final void IntoClause()
                      throws ParseException
Throws:
ParseException

FromClause

public final void FromClause()
                      throws ParseException
Throws:
ParseException

TableSource

public final void TableSource()
                       throws ParseException
Throws:
ParseException

JoinedTable

public final void JoinedTable()
                       throws ParseException
Throws:
ParseException

JoinType

public final void JoinType()
                    throws ParseException
Throws:
ParseException

TableHint

public final void TableHint()
                     throws ParseException
Throws:
ParseException

ViewHint

public final void ViewHint()
                    throws ParseException
Throws:
ParseException

JoinHint

public final void JoinHint()
                    throws ParseException
Throws:
ParseException

TableName

public final void TableName()
                     throws ParseException
Throws:
ParseException

TableAlias

public final void TableAlias()
                      throws ParseException
Throws:
ParseException

NewTable

public final void NewTable()
                    throws ParseException
Throws:
ParseException

ColumnAlias

public final void ColumnAlias()
                       throws ParseException
Throws:
ParseException

ViewName

public final void ViewName()
                    throws ParseException
Throws:
ParseException

SourceName

public final void SourceName()
                      throws ParseException
Throws:
ParseException

WhereClause

public final void WhereClause()
                       throws ParseException
Throws:
ParseException

SearchCondition

public final void SearchCondition()
                           throws ParseException
Throws:
ParseException

PredicateBlock

public final void PredicateBlock()
                          throws ParseException
Throws:
ParseException

Predicate

public final void Predicate()
                     throws ParseException
Throws:
ParseException

PredicateTrue

public final void PredicateTrue()
                         throws ParseException
Throws:
ParseException

Exists

public final void Exists()
                  throws ParseException
Throws:
ParseException

OrderByClause

public final void OrderByClause()
                         throws ParseException
Throws:
ParseException

GroupByClause

public final void GroupByClause()
                         throws ParseException
Throws:
ParseException

HavingClause

public final void HavingClause()
                        throws ParseException
Throws:
ParseException

ProcedureName

public final void ProcedureName()
                         throws ParseException
Throws:
ParseException

ReInit

public void ReInit(java.io.InputStream stream)
Reinitialise.


ReInit

public void ReInit(java.io.InputStream stream,
                   java.lang.String encoding)
Reinitialise.


ReInit

public void ReInit(java.io.Reader stream)
Reinitialise.


ReInit

public void ReInit(ParserTokenManager tm)
Reinitialise.


getNextToken

public final Token getNextToken()
Get the next Token.


getToken

public final Token getToken(int index)
Get the specific Token.


generateParseException

public ParseException generateParseException()
Generate ParseException.


enable_tracing

public final void enable_tracing()
Enable tracing.


disable_tracing

public final void disable_tracing()
Disable tracing.